package com.ykq.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @program: keyboard
 * @description:
 * @author: 闫克起2
 * @create: 2023-07-21 16:24
 **/
@Controller
@RequestMapping("/view")
public class ViewController {
    @GetMapping("/{page}")   //   /view/toStaff
    public String page(@PathVariable String page){
        return page; //经过视图解析器 /toStaff.jsp
    }
}
